Make make_exception_ptr abort with -fno-exceptions git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@288575 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/exception b/include/exception index 686e4ec..d8b8cce 100644 --- a/include/exception +++ b/include/exception
@@ -79,6 +79,7 @@ #include <__config> #include <cstddef> +#include <cstdlib> #include <type_traits> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) @@ -161,7 +162,9 @@ { return current_exception(); } -#endif // _LIBCPP_NO_EXCEPTIONS +#else + _VSTD::abort(); +#endif } // nested_exception